#include <iostream>
#include <sstream>
#include "interest_table.h"
#include "person.h"
#include "couple.h"
#include "person_list.h"
#include "couples_list.h"
#include "dating.h"

using namespace std;

int main()
{
	interest_table it;

	it.add_interest(interest::animals);
	it.add_interest(interest::dancing);
	it.print(cout);

	person anna("Karlsson", "Anna");
	anna.add_interest(interest::cinema);
	anna.add_interest(interest::gaming);
	anna.print(cout);

	person pelle;
	istringstream iss("(Andersson,Pelle)");
	iss >> pelle;
	pelle.add_interest(interest::cinema);
	pelle.add_interest(interest::gaming);
	pelle.add_interest(interest::traveling);
	pelle.print(cout);

	couple c(anna, pelle);
	c.print(cout);

	person_list pl;
	pl.read_from_file("boys.txt");
	pl.print(cout);

	couples_list cl;
	cl.add_couple(c);
	person p1("Jonsson", "Anders");
	person p2("Jansson", "Berit");
	cl.add_couple(couple(p2, p1));
	cl.print(cout);

	cout << endl << "Date matching: " << endl << endl;
	dating d;
	d.read_from_files("boys.txt", "girls.txt");
	d.match(2);
	d.print(cout);




	system("pause");
	return 0;
}